import { IsString, IsNotEmpty, Length, IsUUID } from 'class-validator';

export class CaptchaChallengeDto {
  constructor(key: string, value: string) {
    this.key = key;
    this.value = value;
  }

  @IsString()
  @IsUUID()
  @IsNotEmpty()
  readonly key: string;

  @IsString()
  @Length(4)
  @IsNotEmpty()
  readonly value: string;
}
